<?php
// 确认订单页-获取商品信息，商店信息-可以合并多个订单-单个商店可为一个订单
require_once $this->website['path']['action'] . '/app/token.php';
$uid = $basic['uid'];
$params = fn_post('params');
// [
// 	[pid:9,price:1,param:["颜色","大小"]],
// 	[pid:9,price:1,param:["颜色","大小"]],
// ]

$json = array('status' => 'error', 'msg' => '', 'data' => []);

$arrParams = json_decode($params, 1);
if (!$params) {
	$json['msg'] = '参数异常';
	$json['code'] = 1001;
	$this->json_encode_encrypt($json);
}

$data = [];

foreach ($arrParams as $v) {
	$data[] = fn_prices_for_order($this->website, $v, $uid);
}
$json['status'] = 'ok';
$json['data'] = $data;

$this->json_encode_encrypt($json);